package com.tmxk.days01.szk;

public class D {
    private String nane;
    private String age;
    private String sex;

    public D() {
    }

    public D(String nane, String age, String sex) {
        this.nane = nane;
        this.age = age;
        this.sex = sex;
    }

    public String getNane() {
        return nane;
    }

    public void setNane(String nane) {
        this.nane = nane;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "D{" +
                "nane='" + nane + '\'' +
                ", age='" + age + '\'' +
                ", study='" + sex + '\'' +
                '}';
    }


    public void eat() {
        System.out.println("在吃饭");
    }

    public void eat(String name){
        System.out.println(name + "在喝水");
    }

    public void change(int[] nums) {
        nums[0] = 100;
    }

    public void change(int num) {
        num = 123;

    }
}
